package com.ln.sms.quartz;

import javax.annotation.Resource;

import com.ln.adoms.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("quartzService")
public class QuartzService {

    @Autowired
    private AutoReciveQuartz autoReciveQuartz;
    @Autowired
    private AutoReplyQuartz autoReplyQuartz;
    @Resource
    @Autowired
    private AutoComplete autoComplete;

    @Autowired
    private OrderService orderService;

    public void work() {
        autoReciveQuartz.run();
        autoReplyQuartz.run();
        orderService.autoReceiveOrder();
    }

    public void autoComplete() {
       // autoComplete.autoSaveOrder();
    }
}
